<%@include file="index.jsp"%>
<%@ page import="com.verbetia.mbrainz.search.ResultItem" %>
<jsp:useBean id="mbsearch" class="com.verbetia.mbrainz.search.TrackSearchController" />

<% mbsearch.setQuery(request.getParameter("q")); %>


 <div id="content">           
        <div id="page"><div id="page-contents">

<table>

<%  java.util.ArrayList a = mbsearch.getQuery(); 

   for (int i=0; i!=a.size(); i++)
   { 
		ResultItem r = (ResultItem)a.get(i);   
   %>
	<tr>
	 <td><h1><%= r.getTitle() %><h1></td>
	 <td><h3><%= r.getArtist() %></h3></td>
	 <td><h3><%= r.getAlbum() %></h3></td>
 	 <td><%= r.getScore() %></td>
	 <td><a href="album.jsp?artist=<%= r.getArtist() %>&album=<%= r.getAlbum() %>"><img src="<%= r.getAsin() %>" alt="<%= r.getAlbum() %>" /></a></td>	
	 <td><a href="tags.jsp?artist=<%= r.getArtist()%>&title=<%= r.getTitle()%>">tags</a></td>
	</tr>

 <%  }%>
 </table>
 
</div></div></div>
  
